package com.sanhai.data.controller;

import com.sanhai.data.respository.po.UserEntity;
import com.sanhai.data.service.UserService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 作者：tianjiayuan
 * 创建时间：2018-04-09 18:33
 * 类描述：
 * 修改人：
 * 修改时间：
 */
@RestController
public class TestController {

    @Resource(name = "userService")
    private UserService userService;

    @GetMapping("/user/get.do")
    public ResponseEntity getUser() {
        UserEntity user = this.userService.getUser(33320000001L);
        ResponseEntity resp = new ResponseEntity(user, HttpStatus.OK);
        return resp;
    }

}
